package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FishingBoat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "渔船名称")
    private String boatName;

    @ApiModelProperty(value = "作业方式")
    private String operatingType;

    @ApiModelProperty(value = "作业渔区")
    private String operatingArea;

    @ApiModelProperty(value = "捕捞时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime catchTime;

    @ApiModelProperty(value = "渔获种类")
    private String type;

    @ApiModelProperty(value = "渔获重量")
    private String weight;

    @ApiModelProperty(value = "渔获规格")
    private String specs;

    @ApiModelProperty(value = "规格单位")
    private String unit;

    @ApiModelProperty(value = "箱码")
    private String code;

    @TableField(exist = false)
    @ApiModelProperty(value = "渔船数量")
    private Integer count;

    @TableField(exist = false)
    @ApiModelProperty(value = "渔获物种类")
    private Integer types;

    @TableField(exist = false)
    @ApiModelProperty(value = "作业渔区数量")
    private Integer areas;
}